package com.fuluwa.depart.pc.interfaces.web;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public abstract class BaseController {

	protected final static Logger logger = LoggerFactory.getLogger(BaseController.class);
	
	protected Result result = new Result(); // 所有controller返回一致的result
	
	protected Result createSuccResult(){
		return new Result(0, "SUCC");
	}
	
	protected Result createFailResult(int errCode, String errMsg){
		return new Result(errCode, errMsg);
	}
}
